package com.groupbuying.cheetah.order.orderCounterFlow.service.impl;

import com.groupbuying.cheetah.order.orderCounterFlow.dao.OrderCounterFlowDao;
import com.groupbuying.cheetah.order.orderCounterFlow.domain.OrderCounterFlowDo;
import com.groupbuying.cheetah.order.orderCounterFlow.service.OrderCounterFlowService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class OrderCounterFlowServiceImpl implements OrderCounterFlowService {
    public static final Logger LOGGER = LoggerFactory.getLogger(OrderCounterFlowServiceImpl.class);

    @Autowired
    private OrderCounterFlowDao orderCounterFlowDao;

    /**
     * 我的订单列表
     */
    public List<OrderCounterFlowDo> orderCounterFlowList(Map<String, Object> map) {
        return orderCounterFlowDao.orderCounterFlowList(map);
    }

    public int count(Map<String, Object> map){
        return orderCounterFlowDao.count(map);
    }
}
